﻿/// <reference path="../Mobile.js" />
/// <reference path="Login.js" />
/// <reference path="Container.js" />

(function () {
    var obj = this;
    var element = $(this);
    var controls = {

    };

    iuPlace.Application.OnInitialized(onInitialized);
    iuPlace.Application.OnOpenSession(onOpenSession);
  
    function onInitialized() {
        iuPlace.Application.OpenSession(false);       
    };

    function onOpenSession(e, success) {
        if (!success)
            iuPlace.Application.Mobile.Main.Login.Mode(iuPlace.Application.Mobile.Main.Login.Types.TypeMode.Login);
        else {
            iuPlace.Application.Mobile.Main.Login.Visible(false);
            iuPlace.Application.Mobile.Main.Container.Visible(true);
        }
    };

    $.extend(iuPlace.Application.Mobile.Main, {

    });
})();